package com.micai.springboot.mapper;

import com.github.pagehelper.Page;
import com.micai.springboot.base.SuperMapper;
import com.micai.springboot.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：
 * <p>
 * Author: 赵新国
 * Date: 2017/10/24 18:05
 */
public interface UserMapper extends SuperMapper<UserEntity> {

    Page<UserEntity> findByPage(Map<String, Object> columnMap);

    Integer getPermissionCountById(@Param("id") Long id);

    List<Long> getMenuIdsByUserId(@Param("id") Long id);
}
